import request from '@/router/axios';

export const getList = (page, size, params) => {
  return request({
    url: '/base/navigation/list',
    method: 'post',
    params: {
      ...params,
      page,
      size,
    }
  })
}
export const remove = (id) => {
  return request({
    url: '/base/navigation/delete',
    method: 'post',
    meta: {
      isSerialize: true,
    },
    data: {
      id,
    }
  })
}

export const add = (row) => {
  return request({
    url: '/base/navigation/addItem',
    method: 'post',
    meta: {
      isSerialize: true,
    },
    data: row
  })
}

export const update = (row) => {
  return request({
    url: '/base/navigation/editItem',
    method: 'post',
    meta: {
      isSerialize: true,
    },
    data: row
  })
}

export const changeStatus = (userId, status) => {
  return request({
    url: '/base/navigation/changeStatus',
    method: 'post',
    meta: {
      isSerialize: true,
    },
    data: {
      userId,
      status
    }
  })
}
export const getActDictData = (data) => {
  return request({
      url: '/activity/activity/list',
      method: 'post',
      meta: {
        isSerialize: true,
      },
      data: {
          ...data
      }
  })
}
export const listManage = (data) => {
  return request({
      url: '/base/goodsClass/listAllLevelOne',
      method: 'post',
	  meta: {
	    isSerialize: true,
	  },
      data: data
    })
}

export const listDicData = (data) => {
  return request({
    url: '/base/goodsManage/list',
    method: 'post',
    meta: {
      isSerialize: true,
    },
    data: data
  })
}

export const StoreListManage = (data) => {
  return request({
    url: '/base/store/listStoreManage',
    method: 'post',
    meta: {
      isSerialize: true,
    },
    data: data
  })
}